package org.bl.chat.model.po;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document
@ApiModel("用户DO")
public class UserDO {

    @Id
    private String id;
    @ApiModelProperty("ip")
    private String ip;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("频道ID")
    private String channelId;
    @ApiModelProperty("是否在线")
    private boolean isOnline;
    @ApiModelProperty("创建时间")
    private Date createDate;
    @ApiModelProperty("更新时间")
    private Date updateDate;


}
